<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=750, user-scalable=0">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <title>确认订单</title>
    <link rel="stylesheet" href="__PUBLIC__/css/weui.css?t=20141028987051">
    <link rel="stylesheet" href="__PUBLIC__/css/jquery-weui.min.css?t=20141028987051">
    <link href="__PUBLIC__/css/style.css?t=20141028987051" rel="stylesheet">
</head>
<style>
    td{
         white-space: nowrap;
        }
</style>
<body>
    <div class="layout fixed" id="page-home">
        <header>
            <a href="javascript:history.go(-1);" class="link-left">返回</a>
        </header>
    
        <div class="address-bd">
            <center>
            <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" style="line-height: 2.4rem; padding:10px; font-size:32px;">
              <tbody>
                <tr>
                  <td width="86%" height="40" align="left" valign="top">订单总价：</td>
                  <td width="14%" align="left" valign="top">{$orderinfo.cost}元</td>
                </tr>
              </tbody>
            </table>
            </center>
        </div>
        
        
        <div class="address-bd">
            <center>
            <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" style="line-height: 2.4rem; padding:10px; font-size:32px;">
              <tbody>
                <!-- <tr>
                  <td colspan="2" align="left">订单详情：</td>
                </tr> -->
                <tr>
                  <td width="14%" align="left">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
                  <td width="86%" align="left">{$orderinfo.name}</td>
                </tr>
                <tr>
                  <td align="left">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话：</td>
                  <td align="left">{$orderinfo.mphone}</td>
                </tr>
                <tr>
                  <td width="14%" align="left">预约时间：</td>
                  <td align="left">{$orderinfo.time}</td>
                </tr>
                <tr>
                  <td height="40" align="left" valign="top">选择车型：</td>
                  <td align="left" valign="top">{$orderinfo.car}</td>
                </tr>
                <tr>
                  <td width="14%" align="left" valign="top">出&nbsp; 发&nbsp;&nbsp;地：</td>
                  <td align="left" valign="top">{$orderinfo.startadd}</td>
                </tr>
                <tr>
                  <td width="14%" align="left" valign="top">目 &nbsp;的 &nbsp;地：</td>
                  <td align="left" valign="top">{$orderinfo.endadd}</td>
                </tr>
                <!-- <tr>
                  <td align="left" valign="top">行李件数：</td>
                  <td align="left" valign="top">{$orderinfo.bag_num|default=0}件</td>
                </tr> -->
                <tr>
                  <td align="left" valign="top">其他备注：</td>
                  <td align="left" valign="top">{$orderinfo.beizhu}</td>
                </tr>
              </tbody>
            </table>
            </center>
        </div>
        
        <div class="address-bd">
            <center>
            <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" style="line-height: 2.4rem; padding:1px; font-size:28px;">
              <tbody>
                <volist name="list" id="vo" key="k" >
                <tr>
                  <td align="left">{$k}.{$vo.name}</td>
                  <td align="center">X{$vo.num}</td>
                  <td align="center" valign="middle">需拆装</td>
                </tr>
                </volist>
                
                
              </tbody>
            </table>
            </center>
        </div>
        <div class="layer_notice" style="white-space:normal;">
          <pre style="font-size:20px;padding:0 20px; color: red;white-space:normal;">
费用说明：<br>
1.报价不包含搬运费，现场如需搬运请与师傅协商价格。<br>
2.报价不包含过路过桥费，面包车走海底隧道加收费用20元，
货车走跨海大桥加收费用150元。<br>
3.请在师傅到达之前完成打包，因客户原因导致司机等待的，
按照20元/15分钟收取等待费。<br>
4..搬家路线及里程以高德地图提供的两地最短行车距离为准。<br>
          </pre>
        </div>
        
        <div class="confirm-order">
            <button class="btnall-confirm btn-confirm" style="margin-top:20px;">提交订单</button>
            <button class="wxpay-confirm btn-confirm" style="margin-top:20px; background-color:green;" >微信支付</button>
        </div>
        
       
    </div>
    
    <script src="__PUBLIC__/js/jquery.min.js?t=20141028987051"></script>
    <script src="__PUBLIC__/js/jquery-weui.min.js?t=20141028987051"></script>
    <script>
		$(".btnall-confirm").click(function () {

      $.post("__CONTROLLER__/submit_order", {
        id : "{$orderinfo.id}",
      }, function(data, status) {
        alert(data.info);
        window.location.href = data.url; 
      });
			/*var url='__CONTROLLER__/submit_order?id={$orderinfo.id}';
     window.location = url; */

		});
	
	 $(".wxpay-confirm").click(function () {
      var url='__MODULE__/Wxpay/new_pay/ordersid/{$orderinfo.id}/type/nocarry/money/{$orderinfo.cost}';
     window.location = url; 
      
    });
    </script>
    
    
    
</body>
</html>


<!--<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<style>
  span{
  	color:red;
  }
  p,span{
  	font-size:1em;
  }
</style>
</head>
<body>
 <div>
    <h4 align="center">您已下单成功！</h4> 
    <div style="width:100%">
        <p style="font-size:1em">订单明细</p>
         {$tpl}
        <h4 align="center"><a href="javascript:if(confirm('确实要删除该内容吗?'))location='__CONTROLLER__/delOrder'" style="color:red;text-decoration:none;" >取消订单</a></h4> 
    </div>
  </div>
</body>
</html>-->